package com.bt.table.ppt;

/**
 * Ret_cus_prd_indt_ablistId entity. @author MyEclipse Persistence Tools
 */

public class Ret_cus_prd_indt_ablistId implements java.io.Serializable {

	// Fields

	private String vdr_prd_seq_id;
	private String code;

	// Constructors

	/** default constructor */
	public Ret_cus_prd_indt_ablistId() {
	}

	/** full constructor */
	public Ret_cus_prd_indt_ablistId(String vdr_prd_seq_id, String code) {
		this.vdr_prd_seq_id = vdr_prd_seq_id;
		this.code = code;
	}

	// Property accessors

	public String getVdr_prd_seq_id() {
		return this.vdr_prd_seq_id;
	}

	public void setVdr_prd_seq_id(String vdr_prd_seq_id) {
		this.vdr_prd_seq_id = vdr_prd_seq_id;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_cus_prd_indt_ablistId))
			return false;
		Ret_cus_prd_indt_ablistId castOther = (Ret_cus_prd_indt_ablistId) other;

		return ((this.getVdr_prd_seq_id() == castOther.getVdr_prd_seq_id()) || (this
				.getVdr_prd_seq_id() != null
				&& castOther.getVdr_prd_seq_id() != null && this
				.getVdr_prd_seq_id().equals(castOther.getVdr_prd_seq_id())))
				&& ((this.getCode() == castOther.getCode()) || (this.getCode() != null
						&& castOther.getCode() != null && this.getCode()
						.equals(castOther.getCode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getVdr_prd_seq_id() == null ? 0 : this.getVdr_prd_seq_id()
						.hashCode());
		result = 37 * result
				+ (getCode() == null ? 0 : this.getCode().hashCode());
		return result;
	}

}